r1,r2 = map(float,input().split())
r = 1/(1/r1 + 1/r2)
print(format(r,".2f"))